package com.guchenbo.spark.core

/**
 * @author guchenbo
 * @date 2022/3/5
 */
object RddDistinct {
  def main(args: Array[String]): Unit = {
    val sc = SparkUtils.sc("map")
    val rdd = sc.makeRDD(List(1, 2, 3, 3, 4, 4, 5, 6, 7, 8, 9))
    rdd.distinct().collect().foreach(println)
  }
}
